<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="../../css/bootstrap.min.css">
    <link rel="stylesheet" href="../../css/font-awesome.min.css">
    <link rel="stylesheet" href="../../plugins/jqgrid/ui.jqgrid-bootstrap.css">
    <link rel="stylesheet" href="../../plugins/ztree/css/metroStyle/metroStyle.css">
    <link rel="stylesheet" href="../../css/main.css">
    <script src="../../libs/jquery.min.js"></script>
    <script src="../../plugins/layer/layer.js"></script>
    <script src="../../libs/bootstrap.min.js"></script>
    <script src="../../libs/vue.min.js"></script>
    <script src="../../plugins/jqgrid/grid.locale-cn.js"></script>
    <script src="../../plugins/jqgrid/jquery.jqGrid.min.js"></script>
    <script src="../../plugins/ztree/jquery.ztree.all.min.js"></script>
    <script src="../../js/common.js"></script>
    <!-- 注意， 只需要引用 JS，无需引用任何 CSS ！！！-->
    <script type="text/javascript" src="../../js/wangEditor.min.js"></script>
</head>

<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div class="form-group col-sm-2">
                <input type="text" class="form-control" v-model="searchParam" @keyup.enter="query" placeholder="项目名称">
            </div>
            <div class="form-group col-sm-2">
                <select class="form-control" v-model="searchType" placeholder="项目类型">
                    <option value="">类型</option>
                    <option value="0">系统反馈</option>
                    <option value="1">项目反馈</option>
                </select>
            </div>
            <a class="btn btn-default" @click="query">查询</a>
            <a v-if="hasPermission('feedback:feedbackinfos:audit')" class="btn btn-primary" @click="auditbtn"><i class="fa fa-pencil-square-o"></i>&nbsp;审核</a>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group" v-show="feedbackinfos.feedbackinfoid != null ? true : false">
                <div class="col-sm-2 control-label">反馈ID</div>
                <div class="col-sm-10">
                    <input type="text" disabled="disabled" class="form-control" v-model="feedbackinfos.feedbackinfoid" placeholder="用户id"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">反馈者</div>
                <div class="col-sm-10">
                    <input type="text" disabled="disabled" class="form-control" v-model="userinfo.useraccount" placeholder="用户id"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">反馈内容</div>
                <div class="col-sm-10">
                    <textarea rows="5" disabled="disabled" cols="20" v-model="feedbackinfos.contexts" style="width: 150%;height: 150px" placeholder="项目详细">

                    </textarea>
                    <!--<div id="editor" style="width: 200%;">-->

                    <!--</div>-->
                </div>
            </div>
            <div class="form-group" v-show="feedbackinfos.createtime != null ? true : false">
                <div class="col-sm-2 control-label">创建时间</div>
                <div class="col-sm-10">
                    <input type="text" disabled="disabled" class="form-control" v-model="feedbackinfos.createtime" placeholder="用户id"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">反馈类型</div>
                <div class="col-sm-10">
                    <select class="form-control" v-model="feedbackinfos.feedbacktype" disabled="disabled">
                        <option value="0">系统反馈</option>
                        <option value="1">项目反馈</option>
                    </select>
                </div>
            </div>
            <div class="form-group" v-show="feedbackinfos.feedbacktype == 0 ? false : true">
                <div class="col-sm-2 control-label">目标名</div>
                <div class="col-sm-10">
                    <input type="text" disabled="disabled" class="form-control" v-model="projectinfo.projectname" placeholder="项目名"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">审核状态</div>
                <div class="col-sm-10">
                    <select class="form-control" v-model="feedbackinfos.auditstatus">
                        <option value="0">待审核</option>
                        <option value="1">已解决</option>
                        <option value="2">未解决</option>
                    </select>
                </div>
            </div>
            <div class="form-group" v-show="feedbackinfos.auditstatus == 0 ? false : true">
                <div class="col-sm-2 control-label">反馈回复内容</div>
                <div class="col-sm-10">
                    <!--<input type="text" class="form-control" v-model="feedbackinfos.dealcontexts" placeholder="反馈回复内容"/>-->
                    <textarea rows="5" cols="20" v-model="feedbackinfos.dealcontexts" style="width: 150%;height: 100px" placeholder="项目详细">

                    </textarea>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="audit" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="../../js/modules/feedbackaudit/feedbackaudit.js"></script>
</body>
</html>